#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    connect(ui->btn1, &QPushButton::clicked, this, [=]()
    {
        qDebug() << "hello";
        this->close();
    }
    );
}

MainWindow::~MainWindow()
{
    delete ui;
}

